package com.quan.upms.rpc.dao.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.quan.common.core.support.BaseMapper;
import com.quan.upms.rpc.model.UpmsMenu;

public interface UpmsMenuMapper extends BaseMapper<UpmsMenu> {
	
	/**
	 * 查询所有根节点
	 * @return
	 */
	public List<UpmsMenu> selectRoot() ;

	/**
	 * 根据父ID查询子节点
	 * @param pid
	 * @return
	 */
	public List<UpmsMenu> selectChildren(@Param("pid") Integer pid) ;
	
}